'use strict';

module.exports = app => {
	const {INTEGER,STRING,DECIMAL}=app.Sequelize;

	const PackageOperator=app.model.define('packageOperator',{
		id:{type:INTEGER,primaryKey:true},
		merchant_id:{type:INTEGER},
		name:{type:STRING(128)},
		category:{type:INTEGER},
		type:{type:INTEGER},
		operatorType_id:{type:INTEGER},
		network_type:{type:INTEGER},
		flow:{type:INTEGER},
		flow_value:{type:STRING(32)},
		effect_time:{type:INTEGER},
		effect_value:{type:INTEGER},
		price:{type:DECIMAL(12,2)},
		day_high_flow:{type:INTEGER},
		day_low_flow:{type:INTEGER},
		month_high_flow:{type:INTEGER},
		month_low_flow:{type:INTEGER},
		card_share:{type:INTEGER},
		address:{type:STRING(255)},
		remark:{type:STRING(500)},
		status:{type:INTEGER},
		create_id:{type:INTEGER},
		create_name:{type:STRING(64)},
		create_time:{type:INTEGER},
		update_time:{type:INTEGER}});
	return PackageOperator;
};